{template 'public/header'}

{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcss.css">
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcsslist.css">

<ul class="nav nav-tabs">    
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li><a href="{php echo $this->createWebUrl('qrcodelist')}">联盟红包</a></li>

    <li class="active"><a href="{php echo $this->createWebUrl('addcode')}">创建红包</a></li>

</ul>

<div class="main">

    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">

        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->

        <div class="panel panel-default ygdefault">

            <div class="panel-heading wyheader">

                创建红包

            </div>

            <div class="panel-body">



                <div class="form-group">

                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动名称</label>

                    <div class="col-sm-9">

                        <input type="text" name="title" class="form-control" value="{$info['title']}" />

                    </div>

                </div>  
                </div>
              <div class="panel panel-default">
             <div class="panel-body" style="padding: 0px 15px;">
                    <div class="row">
                        <table class="yg5_tabel col-md-12">
                            <tr class="yg5_tr1">
                               <th class="store_td1 col-md-1" style="text-align: center;">
                                  <input type="checkbox" class="allcheck" />
                                  <span class="store_inp">全选</span>                      
                              </th>
                                <td class="store_td1 col-md-1">所属商家</td>  
                                <td class="col-md-1">类型</td>
                                <td class="col-md-2">名称</td>
                                <td class="col-md-1">剩余数量</td>
                              
                               
                            </tr>
                            {loop $list $key $item}
                            <tr class="yg5_tr2">
                               <td>
                                  <input type="checkbox" name="ids[]" value="{$item['id']}|{$item['is_km']}" {if $item['check'] == 1}checked{/if}>
                                 </td>
                                <td>{$item['storename']}</td>
                                <td>{$item['typename']}</td>
                                <td>{$item['name']}</td>
                                <td>{$item['number']}</td>
                            </tr>
                            {/loop}
                            {if empty($list)}
                            <tr class="yg5_tr2">
                            <td colspan="11">
                                  暂无优惠券
                              </td>
                            </tr>
                            {/if}
                        </table>
                    </div>
                </div>
                </div>

                  </div>

        </div>



        <div class="form-group">

            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;margin-left: 30%;"/>

            <input type="hidden" name="token" value="{$_W['token']}" />

            <input type="hidden" name="id" value="{$info['id']}" />

        </div>

    </form>

</div>

<script type="text/javascript">
    $(function(){
        $("#frame-78").show();
        $("#yframe-78").addClass("wyactive");
    })
    $(".allcheck").on('click',function(){
        var checked = $(this).get(0).checked;
        $("input[type=checkbox]").prop("checked",checked);
    });
</script>{template 'common/footer'}